package stock;

import java.net.MalformedURLException;
import java.net.URL;

import com.gargoylesoftware.htmlunit.ScriptException;
import com.gargoylesoftware.htmlunit.html.HtmlPage;
import com.gargoylesoftware.htmlunit.javascript.DefaultJavaScriptErrorListener;

public class MyJSErrorListener extends DefaultJavaScriptErrorListener {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	@Override
	public void scriptException(HtmlPage page, ScriptException scriptException) {
		// TODO Auto-generated method stub
		//super.scriptException(page, scriptException);
	}

	@Override
	public void timeoutError(HtmlPage page, long allowedTime, long executionTime) {
		// TODO Auto-generated method stub
		//super.timeoutError(page, allowedTime, executionTime);
	}

	@Override
	public void malformedScriptURL(HtmlPage page, String url, MalformedURLException malformedURLException) {
		// TODO Auto-generated method stub
		//super.malformedScriptURL(page, url, malformedURLException);
	}

	@Override
	public void loadScriptError(HtmlPage page, URL scriptUrl, Exception exception) {
		// TODO Auto-generated method stub
		//super.loadScriptError(page, scriptUrl, exception);
	}

	@Override
	public void warn(String message, String sourceName, int line, String lineSource, int lineOffset) {
		// TODO Auto-generated method stub
		//super.warn(message, sourceName, line, lineSource, lineOffset);
	}
	 
}
